package com.sgb.kjwl.view.ui.adapter.transport;

import android.content.Context;
import android.widget.TextView;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.transport.GoodsInfoTypeEntity3;
import com.sgb.kjwl.model.entity.transport.MapGoodsBiddingEntity;
import com.sgb.kjwl.model.entity.transport.MyGoodsSourceListEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class GoodsSourceAdapter extends BaseRecycleAdapter<MapGoodsBiddingEntity> {

    public GoodsSourceAdapter(Context context, List<MapGoodsBiddingEntity> datas) {
        super(context, R.layout.item_goods_source, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, MapGoodsBiddingEntity data) {
        holder.setBinding(BR.viewModel,data);

        TextView tvPrice = holder.getItem().findViewById(R.id.tv_price);
        tvPrice.setText(data.getFreight()+"元/吨");
    }
}
